//
//  ViewController.swift
//  PackagePhotoImagePicker
//
//  Created by iSolar on 2017/11/16.
//  Copyright © 2017年 NOOrganization. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let customButton = UIButton.init(frame: CGRect.init(x: (kWidth - 100)/2, y: kNaviH + kStatusBarH + 50, width: 100, height: 100))
        view.addSubview(customButton)
        customButton.setTitle("自定义相机", for: .normal)
        customButton.titleLabel?.font = UIFont.systemFont(ofSize: 15)
        customButton.setTitleColor(UIColor.black, for: .normal)
        customButton.addTarget(self, action: #selector(takePhoto), for: .touchUpInside)
    }

    @objc func takePhoto() {
        
        let vc = DBTakePhotoVC()
        
        navigationController?.pushViewController(vc, animated: true)
    }

}

